package com.ztorn.fiscale.domain;

import com.ztorn.common.core.annotation.Excel;
import com.ztorn.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 单证关联对象 fiscale_document_relation
 *
 * @author ztorn
 */
public class FiscaleDocumentRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Long relationId;

    /** 单证ID */
    @Excel(name = "单证ID")
    private Long documentId;

    /** 关联单证ID */
    @Excel(name = "关联单证ID")
    private Long relatedDocumentId;

    /** 单证名称 */
    private String documentName;

    /** 关联单证名称 */
    private String relatedDocumentName;

    /** 单证类型名称 */
    private String documentTypeName;

    /** 关联单证类型名称 */
    private String relatedDocumentTypeName;

    public void setRelationId(Long relationId)
    {
        this.relationId = relationId;
    }

    public Long getRelationId()
    {
        return relationId;
    }

    public void setDocumentId(Long documentId)
    {
        this.documentId = documentId;
    }

    public Long getDocumentId()
    {
        return documentId;
    }

    public void setRelatedDocumentId(Long relatedDocumentId)
    {
        this.relatedDocumentId = relatedDocumentId;
    }

    public Long getRelatedDocumentId()
    {
        return relatedDocumentId;
    }

    public String getDocumentName()
    {
        return documentName;
    }

    public void setDocumentName(String documentName)
    {
        this.documentName = documentName;
    }

    public String getRelatedDocumentName()
    {
        return relatedDocumentName;
    }

    public void setRelatedDocumentName(String relatedDocumentName)
    {
        this.relatedDocumentName = relatedDocumentName;
    }

    public String getDocumentTypeName()
    {
        return documentTypeName;
    }

    public void setDocumentTypeName(String documentTypeName)
    {
        this.documentTypeName = documentTypeName;
    }

    public String getRelatedDocumentTypeName()
    {
        return relatedDocumentTypeName;
    }

    public void setRelatedDocumentTypeName(String relatedDocumentTypeName)
    {
        this.relatedDocumentTypeName = relatedDocumentTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("relationId", getRelationId())
            .append("documentId", getDocumentId())
            .append("relatedDocumentId", getRelatedDocumentId())
            .append("documentName", getDocumentName())
            .append("relatedDocumentName", getRelatedDocumentName())
            .append("documentTypeName", getDocumentTypeName())
            .append("relatedDocumentTypeName", getRelatedDocumentTypeName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
